home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / rapid-fire.swf / scripts / __Packages / TargetPoints.as < prev    next >
Text File  |  2011-10-17  |  409b  |  23 lines

  1. class TargetPoints extends MovieClip
  2. {
  3.    var dy = -3;
  4.    function TargetPoints()
  5.    {
  6.       super();
  7.       if(this.points >= 20)
  8.       {
  9.          this.points_field.textColor = 16711680;
  10.       }
  11.    }
  12.    function Update()
  13.    {
  14.       var _loc1_ = this;
  15.       _loc1_._y += _loc1_.dy;
  16.       _loc1_.dy += 0.2;
  17.       if(_loc1_.dy > 0)
  18.       {
  19.          _loc1_.removeMovieClip();
  20.       }
  21.    }
  22. }
  23.